#ifndef INET_SOCKET_CONNECTOR_H
#define INET_SOCKET_CONNECTOR_H

#include "SocketStream.h"
#include "Socket.h"
#include "InetAddress.h"

#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netdb.h>
#include <unistd.h>
#include <iostream>

class SocketConnector
{
 public:
  SocketConnector();
  SocketConnector(InetAddress &addr);
  ~SocketConnector();

  void open (const InetAddress &sock);
  void setStream (SocketStream &ss);

 private:
  Socket handle_;
  bool debug_;
};

#endif
